﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.ThrongIn.BLL;
using Com.ThrongIn.BE;
namespace ThrongIn
{
    public partial class Index : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                List<Profile> profileList = new List<Profile>();
                profileList = (new ProfileBLL()).GetLatestProfiles();
                ucProfilePerson.DataSource = profileList.Where(p => p.Parent_Id == 1).ToList();
                ucProfilePerson.BindControl();

                ucProfilePlace.DataSource = profileList.Where(p => p.Parent_Id == 2).ToList();
                ucProfilePlace.BindControl();

                ucProfileThing.DataSource = profileList.Where(p => p.Parent_Id == 3).ToList();
                ucProfileThing.BindControl();


            }
        }
      
    }
}
